package com.iot.iotplus;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@MapperScan(basePackages = {"com.iot.iotplus.mapper","com.iot.iotplus.config"})

public class IoTPlusApplication {
    public static void main(String[] args) {

        SpringApplication.run(IoTPlusApplication.class, args);
    }
    @Bean
    public ObjectMapper getObjectMapper(){
        return  new ObjectMapper();
    }
}
